package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingLevelMapper {
    /**
     * 查询所有护理等级
     *
     * @return
     */
    List<NursingLevelVo> listAll();

    /**
     * 添加护理等级
     *
     * @param nursingLevel
     */
    void add(NursingLevel nursingLevel);

    /**
     * 分页查询护理等级
     *
     * @param name
     * @param status
     * @return
     */
    Page<NursingLevel> PageLevel(@Param("name") String name, @Param("status") Integer status);

    /**
     * 根据id查询护理等级
     *
     * @param id
     * @return
     */
    NursingLevelVo getById(Long id);

    /**
     * 修改护理等级
     *
     * @param nursingLevel
     */
    void update(NursingLevel nursingLevel);

    /**
     * 删除护理等级
     *
     * @param id
     */
    void delete(Long id);

    /**
     * 启用/禁用护理项目
     *
     * @param id
     * @param status
     */
    void modifyState(Long id, Integer status);
}
